import {SET_CHANNELS} from '@/store/actionTypes'
const initState=[]

export  default function channel(state=initState,action){
    console.log('user',state,action);
    if(action.type===SET_CHANNELS) {
        return action.payload
    }
    return state
}
